package com.xxgc.ssm.dao;

import com.xxgc.ssm.po.Goods;
import com.xxgc.ssm.po.GoodsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @shi jia yi
 * @date 2021/12/14/10:57
 */
public interface GoodsMapper {
    long countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    int deleteByPrimaryKey(Long gId);

    int insert(Goods record);

    int insertSelective(Goods record);

    List<Goods> selectByExample(GoodsExample example);

    Goods selectByPrimaryKey(Long gId);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);
}